﻿@model Stardust.Models.HorarioDetalle

@{
    ViewBag.Title = "Editar Detalle";
}

<h2>Editar Detalle</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/custom.js")" type="text/javascript"></script>

@if ( !String.IsNullOrEmpty(ViewBag.error)) { 
    <div class="nNote nWarning hideit">
        <p><strong>AVISO: </strong>@ViewBag.error</p>
    </div>
}
@using (Html.BeginForm("EditarDetalle", "Empleado", FormMethod.Post, new { @class = "form",id ="validate" } ))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <div class = "widget" >
            <div class = "title" ><h6> Editar empleado </h6></div>

            @*<div class = "formRow" >
                @Html.LabelFor( model => model.nombreEmpleado )
                <div class = "formRight" > @Html.DropDownListFor( model => model.nombreEmpleado , new SelectList( ViewBag.empleados , "ID" , "nombres" ) , "Elija un usuario... " ) </div>
                <div class = "clear" ></div>
            </div>*@
             <div class = "formRow" style= " display:none">
                @Html.LabelFor( model => model.idHorarioDetalle )
                <div class = "formRight" > @Html.TextBoxFor( model => model.idHorarioDetalle ) </div>
                <div class = "clear" ></div>
            </div>

            <div class = "formRow" style= " display:none">
                @Html.LabelFor( model => model.idHorario )
                <div class = "formRight" > @Html.TextBoxFor( model => model.idHorario ) </div>
                <div class = "clear" ></div>
            </div>
            <div class = "formRow" >
                @Html.LabelFor( model => model.diaSemana )
                <div class = "formRight" > @Html.DisplayFor( model => model.diaSemana ) </div>
                <div class = "clear" ></div>
            </div>
            <div class = "formRow"  style= " display:none">
                @Html.LabelFor( model => model.diaSemana )
                <div class = "formRight" > @Html.TextBoxFor( model => model.diaSemana ) </div>
                <div class = "clear" ></div>
            </div>
            <div class = "formRow" >
                @Html.LabelFor( model => model.horaEntrada )
                <div class = "formRight" > @Html.TextBoxFor(model => model.horaEntrada, new { @class = "timepicker" }) </div>
                <div class = "clear" ></div>
            </div>

            <div class = "formRow" >
                @Html.LabelFor( model => model.horaSalida )
                <div class = "formRight" > @Html.TextBoxFor(model => model.horaSalida, new { @class = "timepicker" }) </div>
                <div class = "clear" ></div>
            </div>
        </div>
        <p>
            <input class = "redB" type="submit" value="Guardar" />
        </p>
    </fieldset>
}
<p></p><p></p>
